package com.lxd.sunso.product.dao;

import com.lxd.sunso.product.entity.HistroydataEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxd.sunso.product.vo.CurveVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author lxd
 * @email sunlightcs@gmail.com
 * @date 2020-12-30 18:06:30
 */
@Mapper
public interface HistroydataDao extends BaseMapper<HistroydataEntity> {

    void saveHistorydata(HistroydataEntity histroydata);

    List<CurveVo> listOne(@Param("machineId") Long machineId, @Param("datatemplateId") String datatempalteId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<CurveVo> listDate(@Param("machineId") Long machineId, @Param("datatemplateId") String datatempalteId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<HistroydataEntity> getHisList(Long id);

    Integer getTotal(Long id);
}
